package com.liuyu.common.framework.spring.init;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @ClassName InitializingBeanTest
 * @Author: liuyu
 * @Date: Created in 2021/8/16 23:36
 * @Version: 1
 * @Modified By:
 */
@Component
@Slf4j
public class InitializingBeanTest implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        log.error("InitializingBean 实例化后调用，做一些初始化的工作");
    }
}
